package com.example.composeplayground.states

import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel

object AlertManager : ViewModel() {
    val isShow = mutableStateOf(false)
    val content = mutableStateOf("")

    fun show(content: String) {
        this.content.value = content
        isShow.value = true
    }

    fun hide() {
        isShow.value = false
    }
}